package com.thkj.modules.check.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.thkj.modules.check.entity.TblLedger;
import com.thkj.modules.check.service.TblLedgerService;

import dp.dao.PagingList;
import dp.service.BaseService;

@Service
public class TblLedgerServiceImpl extends BaseService implements TblLedgerService {
	public void insertTblLedger(TblLedger t) {
		dao.insert("com.thkj.mapper.TblLedger.insert", t);
	}

	public int updateTblLedger(TblLedger t) {
		int row = dao.update("com.thkj.mapper.TblLedger.update", t);
		return row;
	}

	public int deleteTblLedger(String t) {
		return dao.delete("com.thkj.mapper.TblLedger.delete", t);
	}

	public TblLedger getTblLedgerById(String t) {
		return dao.queryForObject("com.thkj.mapper.TblLedger.getById", t, TblLedger.class);
	}

	public PagingList<Map> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblLedger.query", param, pageIndex, pageSize, Map.class);
	}
}